package com.jxsm.cz.service;

import com.jfinal.ext.route.ControllerBind;
import com.jfinal.plugin.activerecord.Record;
import com.jxsm.cz.util.PinyinUtil;
import com.jxsm.jfinal.core.JxDb;
import com.jxsm.jfinal.core.ServiceController;
import com.jxsm.web.aop.AuthIgnore;

import java.util.List;

/**
 * @author guodegen
 * @description
 * @date 2020/10/11 12:01
 */
@AuthIgnore
@ControllerBind(controllerKey = "test")
public class TestService extends ServiceController {
    public void test(){
        String name = this.getPara("name");
        this.renderJson("{msg:success}");
        List<Record> list = JxDb.find("select loc_id,loc_name from system_loc");
        PinyinUtil.updateJc(list);
    }
}
